package org.class2table.z_running_data;

import org.class2table.core.clazz.annotations.Column;
import org.class2table.core.clazz.annotations.PrimaryKey;
import org.class2table.core.clazz.annotations.Table;

import java.util.Date;

@Table(tableName = "user2")
public class SynTable2 {

    @PrimaryKey
    @Column(columnName = "id", columnType = "bigint(21) unsigned",isNullable = false,columnDefault = "0")
    private Long id;

    @PrimaryKey
    @Column(columnName = "a", columnType = "varchar(255)",isNullable = false)
    private String a;

    @Column(columnName = "e", columnType = "int(20)",isNullable = false,columnDefault = "0")
    private Integer e;

    @Column(columnName = "f", columnType = "datetime",isNullable = false,columnDefault = "CURRENT_TIMESTAMP")
    private Date f;

}
